/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.banconacion.servlet;

import com.banconacion.bean.SolicitudAperturaDTO;
import com.banconacion.service.SolicitudAperturaService;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
 *
 * @author Ernesto
 */
public class MostrarInterfazEvaluacion extends HttpServlet {
    private static final long serialVersionUID = 2652225997622140246L;
    private SolicitudAperturaService aperturaService = new SolicitudAperturaService();
    
    protected void service(
            HttpServletRequest request,
            HttpServletResponse response)
            throws ServletException, IOException {
        
        try {
            List<SolicitudAperturaDTO> aperturaDTOs = aperturaService.obtenerSolicitudesPendientes();
            request.setAttribute("solicitudes", aperturaDTOs);
            request.getRequestDispatcher("/pages/SolicitudesPendientes.jsp").forward(request, response);
        } catch (Exception e) {
        }
    }
}
